<?php
/**
 * Author: 发仔<i@fazi.me>
 * Date: 2018/8/7 19:45
 */

namespace app\open\validate;

use app\base\validate\BaseValidate;
class CompanyStrengthValidate extends BaseValidate
{
    protected $rule = [
        'id' => 'require|isPositiveInt',
        'company_id' => 'require|isPositiveInt',
        'strength_type' => 'integer|>=:0',
    ];

    public $scene = [
        'add'=>[
            'company_id','strength_type'
        ],
        'edit' => [
            'id', 'company_name','user_id','area_id'
        ],
        'audit' => [
            'id', 'state','reason'
        ],
        'bind' => [
            'id', 'car_id'
        ]
    ];
}